#encoding UTF-8
<html>
<head>
<title>List all process</title>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="pragma" content="no-cache"/>
	$refreshMeta
	<style type="text/css">
	body {
		width: 1000px;
	}
	table {
		border-collapse: collapse;
		border: 1px solid #666666;
		font: normal 11px verdana, arial, helvetica, sans-serif;
		color: #363636;
		background: #f6f6f6;
		text-align:left;
	}
	thead, tfoot {
		text-align:left;
		height:30px;
	}
	thead th, tfoot th {
		padding:5px;
	}
	table a {
		color: #333333;
		text-decoration:none;
	}
	table a:hover {
		text-decoration:underline;
	}
	tr.odd {
		background: #f1f1f1;
	}
	th, td {
		padding:5px;
	}
	tr.red {
		color: red;
	}
	td.bold {
		font-weight: bold;
	}
	</style>	
</head>
<body>
	<table cellspacing="0" cellpadding="0" border="1" width="100%">
		<tr>
			<th>PID</th>
			<th width="200">Name</th>
			<th>Status</th>
			<th>Command</th>
			<th>Memorry (MB)</th>
		</tr>
		#for $p in $processList.values()
		#if $p.result == False
		<tr class='red'>
		#else
		<tr>
		#end if
			<td>$p.pid</td>
			<td>$p.desc</td>
			<td class='bold'>$p.result</td>
			<td>$p.cmdLine</td>
			<td>$p.memUse</td>
		</tr>	
		#end for
	</table>
	<hr/>
	<p>Free memory: 
	#if $freeMemory<50 
	<font color='red'>$freeMemory</font> 
	#else 
	$freeMemory 
	#end if 
	MB <br />
	Load average: $loadAvg<br />
	Memory statistic:<br />
	<table>
	    <tr>
	        <td width="50%">
	            <img src="images/60p_memory.png"/>
	            <p align="center" width="100%">60 phút</p>
	        </td>
	        <td>
	            <img src="images/1d_memory.png"/>
                <p align="center" width="100%">1 ngày</p>
            </td>
	    </tr>
	    <tr>
	        <td width="50%">
	            <img src="images/30d_memory.png"/>
                <p align="center" width="100%">30 ngày</p>
            </td>
            <td>
                <img src="images/90d_memory.png"/>
                <p align="center" width="100%">90 ngày</p>
            </td>
	    </tr>
	</table>
	<br />
	CPU statistic:<br />
	<table cellspacing="2">
        <tr>
            <td width="50%">
                <img src="images/60p_cpu.png"/>
                <p align="center" width="100%">60 phút</p>
            </td>
            <td>
                <img src="images/1d_cpu.png"/>
                <p align="center" width="100%">1 ngày</p>
            </td>
        </tr>
        <tr>
            <td width="50%">
                <img src="images/30d_cpu.png"/>
                <p align="center" width="100%">30 ngày</p>
            </td>
            <td>
                <img src="images/90d_cpu.png"/>
                <p align="center" width="100%">90 ngày</p>
            </td>
        </tr>
    </table>
	</p>
	
</body>
</html>